package com.sdp.khy.baotou.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sdp.khy.baotou.db.khy_package_logistics.entity.KhyPackageLogistics;
import com.sdp.khy.baotou.db.khy_package_logistics.service.IKhyPackageLogisticsService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zsp
 * @since 2023-11-29
 */
@RestController
@RequestMapping("/KhyPackageController")
public class KhyPackageLogisticsController {

	@Autowired
	private IKhyPackageLogisticsService iKhyPackageLogisticsService;
	
	public void addPackageLogistics(KhyPackageLogistics PackageLogistics) {
		iKhyPackageLogisticsService.save(PackageLogistics);
	}
	
	public void removePackageLogistics(String packageId) {
		iKhyPackageLogisticsService.removePackageLogisticsByPackageId(packageId);
	}
}

